From 736fc7a7734e5c0c9454f561d1c97db0e47fa177 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 25 Jul 2016 09:44:28 +0300 Subject: [PATCH] Minor, rename function parameter --- src/cargo/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cargo/lib.rs b/src/cargo/lib.rs index 2fd460e33..b96da7d66 100644 --- a/src/cargo/lib.rs +++ b/src/cargo/lib.rs @@ -54,21 +54,21 @@ pub fn execute_main_without_stdin( usage: &str) where V: Encodable, T: Decodable { - process::(|rest, shell| { - call_main_without_stdin(exec, shell, usage, rest, options_first) + process::(|rest, config| { + call_main_without_stdin(exec, config, usage, rest, options_first) }); } pub fn call_main_without_stdin( exec: fn(T, &Config) -> CliResult>, - shell: &Config, + config: &Config, usage: &str, args: &[String], options_first: bool) -> CliResult> where V: Encodable, T: Decodable { let flags = try!(flags_from_args::(usage, args, options_first)); - exec(flags, shell) + exec(flags, config) } fn process(mut callback: F) -- 2.30.2